<?phpnamespace app\admin\controller\finance;use service\JsonService;use app\common\model as M;/** * 用户管理控制器 * Class User * @package app\admin\controller\user */class Coupon extends \app\admin\controller\AuthController{    use \traits\ShotcutControllerTrait;    public $model = '\app\common\model\Coupon';    /**     * 删除配套动作     * @Author   FW     * @DateTime 2024-06-04     * @Email    123763712@qq.com     * @param    int              $id [description]     * @return   [type]               [description]     */    protected function _delete(int $id )    {        ## 删除用户领取记录        $res = M\CouponRecords::where('coupon_id',$id)->delete();        if ( $res === false ) throw new \Exception('删除失败9001');        return true;    }} //Class End